(function() {
	GameShovel = function(rpc) {
		this.rpc = rpc;
		this.is_background = false;

	};
	
	GameShovel.prototype = {
		start : function(is_background) {
			$("#shovel").bind("tap", this.shovel.bind(this));
			$("body").bind("tap", this.shovel.bind(this));
			this.is_background = is_background;
		},
		show : function() {
			$("#screen_game_shovel").show();
		},
		hide : function() {
			$("#screen_game_shovel").hide();
		},
		
		stop : function() {
			$("#shovel").unbind("tap", this.shovel.bind(this));
			$("body").unbind("tap", this.shovel.bind(this));
		},
		shovel : function(event) {
			console.log("Shovel");
			this.rpc.send_shovel_event();
		}
	};
})();